﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_HelpManage.aspx.cs" Inherits="Admin_Admin_HelpManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" CssClass="adminlist"  AutoGenerateColumns="false">
        <Columns>
            <asp:BoundField DataField="sys" HeaderText="系统标记" HeaderStyle-Width="150px" ItemStyle-Width="150px" />
            <asp:BoundField DataField="title" HeaderText="标题" ItemStyle-HorizontalAlign="Left" />
            <asp:TemplateField HeaderText="操作" HeaderStyle-Width="100px">
                <ItemTemplate>
                    <asp:HyperLink NavigateUrl="?action=add" ID="HyperLink1" runat="server" Text="添加"  />
                    <asp:HyperLink NavigateUrl='<%# "?sys=" + Eval("sys") %>' ID="e" runat="server" Text="修改"  />
                    <asp:LinkButton ID="LinkButton1" runat="server" OnCommand="DelHelp" CommandName='<%# Eval("sys") %>' Text="删除" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    
    <asp:FormView ID="FormView1" DefaultMode="Edit" runat="server" Width="100%" Visible="false" OnItemUpdating="OnSubmit" OnItemInserting="OnSubmitOnInsert">
        <EditItemTemplate>
            <table width="100%" class="nick">
                <tr>
                <td colspan="2" class="tit">编辑帮助说明</td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">系统标记：</td>
                    <td class="rtd">
                        <asp:TextBox ID="O_TxtSys" Visible="false" Text='<%#Eval("Sys") %>' runat="server"></asp:TextBox><asp:TextBox ID="TxtSys" Text='<%# Bind("sys") %>' runat="server" Width="150" /> (尽量使用英文字母)</td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">标题：</td>
                    <td class="rtd"><asp:TextBox ID="TxtTitle" Text='<%# Bind("title") %>' runat="server" Width="300" /></td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">内容：</td>
                    <td class="rtd"><asp:TextBox ID="TxtInfo" TextMode="MultiLine" style="display:none;" Text='<%# Bind("info") %>' runat="server" Width="300" />
                    <iframe scrolling="auto" frameborder="0" width="100%" height="350" src="Editor/Editor.aspx?id=ctl00_ContentPlaceHolder1_FormView1_TxtInfo" ></iframe>
                    </td>
                </tr>
                <tr>
                <td>&nbsp;</td>
                <td>
                <asp:Button id="UpdateButton" runat="server" Text=" 更 新 " CommandName="Update" CausesValidation="True"></asp:Button> 
                 <input type="button" id="UpdateCancelButton" onclick="history.back()"  value=" 取 消 " />
                </td>
            </tr>
           </table>
        </EditItemTemplate>
        <InsertItemTemplate>
            <table width="100%" class="nick">
                <tr>
                <td colspan="2" class="tit">添加帮助说明</td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">系统标记：</td>
                    <td class="rtd">
                        </asp:TextBox><asp:TextBox ID="TxtSys" Text='<%# Bind("sys") %>' runat="server" Width="150" /> (尽量使用英文字母)</td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">标题：</td>
                    <td class="rtd"><asp:TextBox ID="TxtTitle" Text='<%# Bind("title") %>' runat="server" Width="300" /></td>
                </tr>
                <tr class="tdbg">
                    <td class="ltd">内容：</td>
                    <td class="rtd"><asp:TextBox ID="TxtInfo" TextMode="MultiLine" style="display:none;" Text='<%# Bind("info") %>' runat="server" Width="300" />
                    <iframe scrolling="auto" frameborder="0" width="100%" height="350" src="Editor/Editor.aspx?id=ctl00_ContentPlaceHolder1_FormView1_TxtInfo" ></iframe>
                    </td>
                </tr>
                <tr>
                <td>&nbsp;</td>
                <td>
                <asp:Button id="UpdateButton" runat="server" Text=" 添 加 " CommandName="Insert" CausesValidation="True"></asp:Button> 
                 <input type="button" id="UpdateCancelButton" onclick="history.back()"  value=" 取 消 " />
                </td>
            </tr>
           </table>
        </InsertItemTemplate>
    </asp:FormView>
</asp:Content>

